package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * spring-data-jpa操作接口
 *
 */
@Repository
public interface StrategySearchRepository extends ElasticsearchRepository<StrategyTemplate, Long> {

    /**
     * 通过目的地查询攻略集合
     * @param destName
     * @return
     */
    List<StrategyTemplate> findByDestName(String destName);


    List<StrategyTemplate> findByThemeId(Long themeId);
}
